package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author xie
 * @since 2024-11-06
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    void addLearningLesson(List<Long> courseIds, Long userId);

    PageDTO<LearningLessonVO> selectLearningLessonPage(PageQuery pageQuery);

    LearningLessonVO selectLessonsNow();

    LearningLessonVO selectCourseId(Long courseId);

    void deleteCourseFromLesson(Long userId, Long courseId);

    Long isLessonValid(Long courseId);

    Integer countLearningLessonByCourse(Long courseId);


    void createPlans(LearningPlanDTO learningPlanDTO);

    LearningPlanPageVO queryMyPlans(PageQuery pageQuery);
}
